
import { Component } from "react";
import Login from "./Login/Login";
import Home from "./Home/Home";


import {Route, Routes} from 'react-router-dom'

//案例（知识点）-demo
class App extends Component {
    render() {
        return (
        <Routes>
            <>
                <Route path="/" element={<Login />}></Route>
                <Route path="/Login" element={<Login />}></Route>
                <Route path="/Home" element={<Home />}></Route>
            </>
        </Routes>
        )




    }
}

export default App